namespace B.S.XZYData.Api.Wrter.Application.Command.SalesOrder
{
    /// <summary>
    /// 更新销售订单命令
    /// </summary>
    public class UpdateSalesOrderCommand : MediatR.IRequest<B.S.XZYData.ErrorCode.ApiResult<string>>
    {
        /// <summary>
        /// 销售订单ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 单据编号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 产品明细列表
        /// </summary>
        public List<SalesOrderProductModel> Products { get; set; }

        /// <summary>
        /// 是否删除所有明细后重新添加
        /// </summary>
        public bool DeleteAllDetails { get; set; } = false;
    }
}
